package com.ydjk.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ydjk.common.core.domain.entity.ComUser;
import com.ydjk.common.utils.StringUtils;
import com.ydjk.system.mapper.UserMapper;
import com.ydjk.system.service.IUserService;
import org.springframework.stereotype.Service;

/**
 * 用户信息Service业务层处理
 *
 * @author ydjk
 * @date 2023-08-30
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,ComUser> implements IUserService
{
    public ComUser selectJkUserByCondition(ComUser comUser) {

        return this.baseMapper.selectOne(new QueryWrapper<ComUser>().eq(StringUtils.isNotEmpty(comUser.getOpenId()),"open_id",comUser.getOpenId()));
    }
}
